import { EggPlugin } from 'egg';

const plugin: EggPlugin = {
  // mysql ORM开启
  sequelize: {
    enable: true,
    package: 'egg-sequelize',
  },

  // 开启跨域
  cors: {
    enable: true,
    package: 'egg-cors',
  },

  // 模板引擎开启
  nunjucks: {
    enable: true,
    package: 'egg-view-nunjucks',
  },

  // 静态设置
  static: {
    enable: true,
    package: 'egg-static',
  },

  // 配置session
  session: {
    enable: true,
    package: 'egg-session',
  },

  // 开启redis
  redis: {
    enable: true,
    package: 'egg-redis',
  },

  /*   security: {
      enable: true,
      package: 'egg-security'
    } */
};

export default plugin;
